dxl copy and move requiring RCD rights at source

Hi,

I want to use a script to enable users to select a module from a folder and copy
it to their current folder. For the source folder they only have "R" access. If
I want to use dxl copy() then move() then the user neeeds "RCD" in the source - I don't
want the user to have "D" access to the source.

When using the DOORS GUI I can copy from source to destination when the source has just "R" access.

I can write a script to create a new module in the destination folder then copy all objects, attributes, views
etc BUT messy.

Anybody got a better solution ?

Thanks, Paul
SystemAdmin - Fri Jan 15 01:34:39 EST 2010

Re: dxl copy and move requiring RCD rights at source
llandale - Fri Jan 15 12:40:58 EST 2010

This works:

string Name1 = "/Testing/Test/Test2"   // Full name source module
string Fold2 = "/WorkLandale"          // Target Folder name
 
clipCopy(item Name1)
string ErrMess = clipPaste(folder Fold2)
 
print "[" ErrMess "]\n"

 


Out-Links are copied, but they go in the ORIGINAL link module, presumably in the production project.

 

 

 

  • Louie

 

 

Re: dxl copy and move requiring RCD rights at source
SystemAdmin - Tue Jan 19 01:09:06 EST 2010

llandale - Fri Jan 15 12:40:58 EST 2010

This works:

string Name1 = "/Testing/Test/Test2"   // Full name source module
string Fold2 = "/WorkLandale"          // Target Folder name
 
clipCopy(item Name1)
string ErrMess = clipPaste(folder Fold2)
 
print "[" ErrMess "]\n"

 


Out-Links are copied, but they go in the ORIGINAL link module, presumably in the production project.

 

 

 

  • Louie

 

 

Thanks Louie, that's just what I was looking for

Paul